<template>
   <div class="leftMenu" id="leftMenu">
      <el-menu
         router
        :default-active="$route.path"
        class="elMenu"
        @select="selectMenu"
        background-color="#545C64"
        text-color="#fff"
        active-text-color="#23bca1">
        <el-menu-item index="/Createmanage">
          <i class="el-icon-document"></i>
          <span slot="title">创建管理</span>
        </el-menu-item>
        <el-menu-item index="/Listmanage">
          <i class="el-icon-setting"></i>
          <span slot="title">列表管理</span>
        </el-menu-item>
      </el-menu>
    </div>
</template>

<script>

    export default {
      name:'leftMenu',
      data(){
        return{

        }
      },
      methods:{
        selectMenu(index, indexPath) {
            console.log(index+"---"+indexPath);
        },
      }
    }
</script>